<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数组 </title>
</head>
<body>
<h2>关键词 new</h2>
<p id="demo"></p>

<script>
  var cars = new Array("Audi", "BMW", "porsche");
  document.getElementById("demo").innerHTML = cars;
</script>

</body>
</html>

<!--
运行结果：Audi,BMW,porsche
-->